<template>
  <nav>
<!--    路由相关的代码，router-link与超链接a标签差不多-->
    <router-link to="/">Home</router-link> |
    <router-link to="/about">About</router-link>
  </nav>
<!--  路由的容器-->
  <router-view/>
</template>

<!--lang="scss"使用scss，即sass来写css-->
<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

//以下就是sass的语法，基本上兼容所有CSs的写法
nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
